package com.qst.rongxiaotong.mapper;

import com.qst.rongxiaotong.pojo.ShoppingCart;
import com.qst.rongxiaotong.pojo.ShoppingModel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    int add(ShoppingCart shoppingCart);

    @Delete("delete from tb_shoppingcart where shopping_id= #{id}")
    int delete(Integer id);

    int update(ShoppingCart shoppingcart);

    List<ShoppingModel> selectByUsername(ShoppingCart shoppingCart);
}
